package com.atguigu.fink.util;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author lzc
 * @Date 2022/11/29 10:34
 */
public class AtguiguUtil {
    public static void main(String[] args) {
    
    }
    
    public static <T>List<T> toList(Iterable<T> it) {
        List<T> result = new ArrayList<>();
        it.forEach(result::add);
        return result;
    }
    
    public static String toDatTime(long ts) {
        return new SimpleDateFormat("yyy-MM-dd HH:mm:ss").format(ts);
    }
}
